home *** CD-ROM | disk | FTP | other *** search
- Path: unixg.ubc.ca!news
- From: csmecher@unixg.ubc.ca (Alec or Graeme Smecher)
- Newsgroups: comp.lang.c++
- Subject: Assembler / C++ class not working!
- Date: Fri, 23 Feb 1996 01:55:06 GMT
- Organization: The University of British Columbia
- Message-ID: <4gj6pb$gb3@nntp.ucs.ubc.ca>
- Reply-To: csmecher@unixg.ubc.ca
- NNTP-Posting-Host: port20.annex4.net.ubc.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- I have defined a class and, within it, several unsigned int's and a
- few functions. The functions have imbedded assembler in them. If I
- don't use assembler, I can access these variables in the function just
- fine. If I introduce imbedded assembler, it's as if the variables
- aren't there! What is wrong? Here is a condensed version: (Sorry if
- there's any typos)
-
- class MyClass {
- public:
- unsigned int a;
- void function();
- };
- void MyClass::function () {
- asm {
- mov ax,a
- ... Do stuff ...
- }
- }
-
- For some reason, this will not compile!!!
- Please help!!!
-
- Thanks for your time...
- Alec Smecher
- csmecher@unixg.ubc.ca
-
-